export const itemListennerMixin = {
  mounted() {

  }
}

import BackTop from "components/common/BackTopBtn/BackTop.vue";

export const backTopClick = {
  components: {
    BackTop
  },
  data() {
    return {
      isBackTopShow: false,
    }
  },
  methods: {
    backtopClick() {
      this.$refs.scroll.scrollToPlace(0, 0, 500);
    },
    //注意，这里的scroll函数不能写在mixin，会覆盖组件内的函数
    // scrollPlace(position) {
    //   this.isBackTopShow = position.y < -1000;
    // },
  },
}
